// find number of observations each year for WDI variables

cd "~/Documents/econ/research/current/cognitive/estimation/data"
use WDI, clear
merge 1:1 countrycode year using survive, nogen

drop if year<1980
// drop if year>2017 | year<1990
// keep if (mod(year,5)==0) // only keep every 5 years

collapse (count) bcg dpt measles hepb anemia iodiz_salt hiv sanitation defecate water ///
	w_anemia low_birth breastfed matermort mmr hs_pct hs_priv 	///
	undernut stunting wasting svr_waste underwgt, by(year)
// try -casewise- option for specific set of complete variables
format * %3.0f

l if year==2010 | year==2015

//mvdecode *, mv(0/89)

browse
